package gsm.cable.client.view;

import gsm.cable.client.DefaultConstants;

import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.SimplePanel;

public class BodyWidget extends SimplePanel {

	public BodyWidget() {
		try {
			add(new Image(DefaultConstants.HEADER_LOGO_URL));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public void addLink(String url, String html) {
		if (url != null && url.trim().length() > 0) {
			Anchor link = new Anchor();
			link.setHref(url);
			link.setHTML(html);
			add(link);
		}
	}
}
